package com.ocom.common.entity.card;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
import java.io.Serializable;

/**
 * 有缓存
 * 2.3.21.消费优惠配置表xf_discount_config(XfDiscountConfig)实体类
 *
 * @author makejava
 * @since 2022-07-21 10:27:41
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "xf_discount_config")
public class EntiyXfDiscountConfig implements Serializable {
    private static final long serialVersionUID = 966538566602612938L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 单位Id
     */
    private Integer comId;
    /**
     * 消费类型，-1表示不限制，1表示饭堂，2表示非饭堂
     */
    private Integer consType;
    /**
     * 时间段，1-99餐段,500按天，1000按月
     */
    private String mealNo;
    /**
     * 账户类型
     */
    private Integer accTypeId;
    /**
     * 消费笔数0-9999
     */
    private Integer consTimes;
    /**
     * 优惠方式：0-无优惠，1-按金额优惠，2-按比例打折，11-按金额加收，12-按比例加收
     */
    private Integer discountMode;
    /**
     * 优惠幅度，大于0
     */
    private Integer discountValue;
    
    private String createUser;
    
    private Date createTime;
    
    private String updateUser;
    
    private Date updateTime;

    private String mealList;

    private Integer amount;
}

